//
//  SQNoticeListViewCell.m
//  pai
//
//  Created by linjunjing on 14-11-19.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import "SQNoticeListViewCell.h"

@implementation SQNoticeListViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"SQNoticeListViewCell" owner:self options: nil];
        if(arrayOfViews.count < 1){return nil;}
        if(![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]){
            return nil;
        }
        self = [arrayOfViews objectAtIndex:0];
    }
    return self;
}

-(void)setDic:(sqlTestList *)dic
{
    self.nameLabel.text = dic.noticeTitle;
    self.contentLabel.text = dic.noticeContent;
    //self.dateLabel.text = [dic objectForKey:@"time"];
}

@end
